<template>
    <div>
      <div class="header">
          <div class="logo">
              <i class="iconfont iconnew"></i>
          </div>
          <div class="search">
             <div class="search-box" @click="$router.push('/search')">
                <a href="#" class="inputA">
                    <span>
                        <i class="iconfont iconsearch"></i>
                        搜索新闻
                    </span>
                </a>
             </div>
          </div>
          <div class="user" @click="handleClick">
             <i class="iconfont iconwode"></i>
          </div>
      </div>
    </div>
</template>

<script>
export default {
    methods:{
        handleClick(){
            this.$emit('tojump');
        }
    }
    
}
</script>

<style lang="less" scoped>
.header{
    box-sizing: border-box;
    display: flex;
    height: 13.889vw;
    line-height: 13.889vw;
    text-align: center;
    background-color: #ffc0cb;
    .logo{
        flex:2;
        .iconfont{
            font-size: 16.667vw;
            color:#fff;
        }
    }
    .search{
        flex:6;
        .search-box{
            padding:1.944vw 0;
            .inputA{
                display: block;
                width:100%;
                height: 9.444vw;
                line-height: 9.444vw;
                text-align: center;
                background-color: #F9DADF;
                border: 1px solid #F9DADF;
                border-radius: 10vw;
                font-size: 3.889vw;
                span{
                    color:#fff;
                    font-size: 4.444vw;
                    .iconfont{
                        color:#fff;
                        font-size: 5vw;
                    } 
                }
            }
        }
    }
    .user{
       flex:2;
       .iconfont{
            font-size:6.667vw;
            color:#fff;
        }
    }
}

</style>